using System;
using System.IO;
using System.Xml;

namespace Altova.IO
{
	public class DocumentOutput : Output
	{
		private XmlDocument document;

		public override Stream Stream
		{
			get
			{
				throw new Exception("This is not a stream");
			}
		}

		public override TextWriter Writer
		{
			get
			{
				throw new Exception("This is not a writer");
			}
		}

		public override XmlDocument Document
		{
			get
			{
				return document;
			}
		}

		public DocumentOutput(XmlDocument d)
			: base(OutputType.XmlDocument)
		{
			document = d;
		}
	}
}
